<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="./dialog.css" />
<script type="text/javascript" src="./dialog.js"></script>
<title>dialog</title>
</head>
<body>
<input type="button" value="alert" onclick="alert('这是一个alert','提示1');"></input>
<input type="button" value="confirm" onclick="confirm('这是一个confirm','提示2');"></input>
</body>
</html>